package itheima.zuoye.test4;

public class Taxi extends  Car {
    private String company;

    public Taxi() {
    }

    public Taxi(String model, String licensePlate, String company) {
        super(model, licensePlate);
        this.company = company;

    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    @Override
    public void start() {
        System.out.println("欢迎乘坐" + company + "出租车，车牌：" + getLicensePlate() + "，车型：" + getModel());
    }

    @Override
    public void stop() {
        System.out.println("到达目的地，请带好随身物品，欢迎再次乘坐！");
    }
}
